<?php if(!defined('IN_FANWE')) exit('Access Denied'); ?>
<?php 
$css_list[0]['url'] = './tpl/css/index.css';
$js_list[0] = './public/js/jquery.slides.js';
 include template('inc/header'); ?><!--dynamic advLayoutName args=首页轮播广告位,adv/indexlflashadv,--><?php 
$best_albums = array_chunk(FS('Album')->getBestAlbums(10),5);
 ?>
<div class="wrapper2 best_album mt15">
<div class="bal"><a href="javascript:;" class="disabled">上一页</a></div>
<div class="bac">
<h2>热门杂志社</h2>
<a class="more" href="<?php echo FU('album/index',array()); ?>">更多杂志社>></a>
<div class="bac_list"><?php if(is_array($best_albums)) { foreach($best_albums as $albums) { ?><ul><?php if(is_array($albums)) { foreach($albums as $album) { ?><li>
<a class="img" href="<?php echo $album['url'];?>"><img class="LOAD_SCALE_IMG" scaleSrc="<?php echo getImgName($album['img']['img'],200,999,0); ?>" scaleType="3" scaleWidth="170" scaleHeight="237"/><span><?php echo $album['title'];?></span></a>
<a class="desc" href="<?php echo $album['url'];?>"><?php echo cutStr($album['content'],52,'...');?></a>
</li>
<?php } } ?>
</ul>
<?php } } ?>
</div>
</div>
<div class="bar"><a href="javascript:;"<?php if(count($best_albums) < 2) { ?> class="disabled"<?php } ?>>下一页</a></div>
</div>
<?php if(count($best_albums) > 1) { ?>
<script type="text/javascript">
jQuery(function($){
$(".bac_list").carouFredSel({
items:1,
circular:false,
infinite:false,
auto:false,
prev:{
button:".bal a",
key:"left"
},
next:{
button:".bar a",
key:"right"
}
});
});
</script>
<?php } ?><!--dynamic getIndexCateShare--><?php include template('inc/footer'); ?>